using UnityEngine;
using System.Collections;

public class MainMenuGui : MonoBehaviour {

    public Rect mainBox = new Rect(100,100,300,200);
    public Rect buttonBox = new Rect();

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}

    void OnGUI()
    {
        GUI.BeginGroup((mainBox), "Main Menu");
        if (GUI.Button(new Rect(10, 50, 100, 50), "Game Start"))
        {
            //go to game scene
            Application.LoadLevel(1);
        }
        if (GUI.Button(new Rect(10, 100, 100, 50), "Credits"))
        {
            //go to the credits scene
            Application.LoadLevel(2);
        }
        if (GUI.Button(new Rect(10, 150, 100, 50), "Quit"))
        {
            //go to the quit scence
            Application.Quit();
        }
        GUI.EndGroup();
    }
}
